﻿<div class="" style="padding:10px;width:98%; margin:auto;">

<script type="text/javascript">
<!--
_run( function() {

	function initFilter() {
		$('#selectFilter').val( wojilu.tool.getQuery( 'filter') );
	}
	
	initFilter();

	$('#btnSearch').click( function() {
		$('#searchForm').submit();
	});

	$('#selectFilter').change( function() {	
		
		var url = '#{filterLink}'+'&filter=' + $(this).val();		
		window.location.href = url;
	});
	

});
//-->
</script>

<style>
#dataAdminList .tableItems a {color:#005eac;}
</style>

		<table id="dataAdminList" cellspacing="0" cellpadding="0" style="width:100%;" data-action="#{ActionLink}">
			<tr class="adminBar">
			<td colspan="6" style="padding:0px;">
				<table style="width:100%; margin:0px; border:0px;" cellpadding="0" cellspacing="0">
					<tr><td style="width:100px;border:3px;">
						<select name="filter" id="selectFilter" class="left10">
							<option value="">_{all}</option>
							<option value="day">_{tDay}</option>
							<option value="day2">_{tDay2}</option>
							<option value="week">_{tWeek}</option>
							<option value="month">_{tMonth}</option>
							<option value="month3">_{tMonth3}</option>
							<option value="month6">_{tMonth6}</option>				
						</select>	
					</td>
					<td style="border:0px;">
						<form id="searchForm" method="get" action="#{searchTarget}">
							_{search}
							<select name="t">
								<option value="author" #{tauthor}>_{author}</option>
								<option value="content" #{tcontent}>_{content}</option>
								<option value="ip" #{tip}>ip</option>
							</select>
							<input name="q" type="text" value="#{searchKey}" />
							<input name="type" type="hidden" value="#{typeFullName}" />
							<input name="Submit1" id="btnSearch" type="button" value="_{search}" class="btn btns" />
						</form>
					</td>
					<td style="text-align:right;padding-right:10px;border:0px;">
						<span id="btnDeleteTrue" class="btnCmd left10" cmd="deletetrue"><img src="~img/delete.gif" /> _{delete}</span>
					
					</td>
					</tr>
				
				</table>		
			</td>
			</tr>

			<tr class="tableHeader">
			<td align="center" style="width:4%;"><input id="selectAll" class="selectAll" type="checkbox" title="_{checkAll}" /></td>
			<td style="width:10%;">_{author}</td>
			<td style="width:40%;">_{content}</td>
			<td style="width:20%;">_{commentTarget}</td>
			<td style="width:11%;">IP</td>
			<td style="width:15%;">_{created}</td>
			</tr>
			<!-- BEGIN list -->
			<tr class="tableItems">
			<td align="center"><input name="selectThis" id="checkbox#{c.Id}" type="checkbox" class="selectSingle"> </td>
			<td>#{c.Author}</td>
			<td><a href="#{c.Link}" target="_blank" class="link">#{c.sContent}</a></td>
			<td>#{c.TargetTitle}</td>
			<td>#{c.Ip}</td>
			<td>#{c.Created}</td>
			</tr><!-- END list -->
			
			<tr>
				<td colspan="6" class="adminPage">#{page}</td>
			</tr>
		
		</table>
		
		
	</div>

